home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Language/OS - Multiplatform Resource Library
/
LANGUAGE OS.iso
/
cpp_libs
/
answrbok
/
4_6.lha
/
4_6
/
randint.c
< prev
next >
Wrap
Text File
|
1993-08-08
|
412b
|
19 lines
* Copyright (c) 1990 by AT&T Bell Telephone Laboratories, Incorporated. */
* The C++ Answer Book */
* Tony Hansen */
* All rights reserved. */
oid srand48(long);
ong mrand48();
include <stream.h>
ain()
cout << "int randints[] =\n{\n";
srand48(31415926);
for (int i = 0; i < 10000 - 1; i++)
cout << " " << mrand48() << ",\n";
cout << " " << mrand48() << "\n";
cout << "};\n";
return 0;